<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="{$smarty.const.__PUBLIC_JS__}/jquery-3.1.1.js"></script>
    <script type="text/javascript" src="{$smarty.const.__PUBLIC_JS__}/jquery.min.js"></script>
    <script type="text/javascript" src="{$smarty.const.__PUBLIC_JS__}/ajaxfileupload.js"></script>
    <script type="text/javascript" src="{$smarty.const.__PUBLIC_JS__}/consult_message.js"></script>
</head>
<body>
<input type="hidden" id="which_DB" value="ssg_ad_entrance">
<div class="top" style="width: 500px ;height: 100px;">
    {foreach $list as $k =>$v}
    {if $v.pid == $pid.id}
    <div><a href="{$smarty.const.__MODULE__}/{$v.controller}/{$v.method}">{$v.name}</a></div>
    {/if}
    {/foreach}
</div>
<div>
    {foreach $goods_list as $k => $v}
    <div>
        <div><img src="{$v.image}" style="width: 64px;height: 64px;"></div>
        <div>{$v.title}</div>
    </div>
    <input type="button" value="编辑" onclick='update_data("{$v.id}","{$smarty.const.__CONTROLLER__}/updateNewGoods")'>
    {foreachelse}
    亲!没有更多的数据啦
    {/foreach}
</div>
{$page_list}
<div style="display: none;position: absolute ;top: 50%;left: 40%" id="prompt">
    <form onsubmit='return send_data("{$smarty.const.__CONTROLLER__}/upload_photo","update")' enctype="multipart/form-data" method="post">
        <input type="hidden" name="has_img" id="has_img">
        <input type="hidden" name="hidden_id" id="hidden_id">
        标题:<input id="title" type="text" name="title" value="">
        <div><img id="image" name="image" src="" style="width: 64px;height: 64px;"></div>
        <input type="file" name="photo" id="photo" onchange="change_img()">
        <input type="submit" value="提交">
    </form>
</div>
</body>
</html>